package com.wyp.service;

import com.wyp.pojo.Questions;

import java.util.List;
import java.util.Map;

public interface QuestionsService {
    //返回所有题目信息给前端页面
    public List<Map<String,Object>> qureyAllQuestions();

    //查找题目
    public List<Map<String,Object>> qureyQuestionsByMessage(String message,int apartmentid);//根据关键信息查询
    public List<Map<String,Object>> qureyQuestionsByApartmentname(int  apartmentid);
    public Map<String,Object> qureyQuestionsByid(int questiontid);
    public List<Map<String,Object>> qureyQuestionsByType(int type,int apartmentid);

    //添加题目
    public boolean addQuestions(Questions questions);

    //更新题目
    public boolean updateQuestions(Questions questions);
}
